changed js frontent