Yep; make the js file and ERB template and use the load them from the classes.