all backend js written! please check :)