FIX javascript