able to convert NSDate to js
can call js function