More updates to the javascript side of things. Just general fixes