Move arith() type conversion fix to parser.c
removed time calls in js target
Refactored method call into convenience function