Generate a main.js, and add a main_preprocess template