Updating client side scripts to match up with server side api methods that were moved to controllers.