Refactor js assets.