can this be placed in it's own JS file and brought in through the assets pipeline.