cleaning up the unnecessary JS