Moving cookbook javascript to it's own file, and reorganizing the file structure