extracted crud javascript into a single place