refactor js asset pipeline for production