moving files into javascript/eloquentjs