Changed Js according to comment