remove undefined js from init