Fix javascript 'float' and 'int' functions

float("14") < float("2")    now returns 'false'
float('a') int('a')         raises an exception

window object is no more used in order to be compatible
with server side JavaScript