I was playing around with the native Date object, and I realised that subtraction works (returns an integer representing the total number of miliseconds between the two dates),
the + operator is overloaded for strings, - is not. You need to use
+ operator
-
var newVal=parseInt(new Date().getTime()) + 1000