Fix Javscript / tests