js fixes and updates, created rating backend functionality(still buggy), degubing