Minor clean up of inline scripts and controllers.