Fixing js sintaxe