Removing more unused js functions
Getting element.js down to just what's in use