Used format: :js in forms instead of format.js in actions