preprocess javascripts