Write some functions for better executing

Wrote a function to figure out how to execute a file, and a similar one
for running tests. Bound to one key <leader> commands to increase
productivity yo.
make some improvements to the test js detection