Create devtools.js

Just a collection of core javascript functions