FIX JS ERROR