rollback application.script and application.appstyles refactor, it was buggy