pull js function out into new file