Change a few javascript functions

document.createElement > $