Removing batch statements that are not longer used and autocomplete state...

...ments that cause errors and moving javascript to asset pipeline