Javascript changes in 3.3

#3-3, #api