changed to .js + preprocess