fix JS style and update to Restangular 1.2.1