fix front javascript