Removing batch statments that are not longer used and autocomplete statements that cause errors and moving javascript to asset pipeline