Add flag for Javascript-only compile

Not the best at Emacs Lisp, not sure if this is going to break preview behaviour because it depends on an an HTML file being generated or anything.