Fixes speed issues with vim

- adds better support for running javascript inline