Minor javascript fixes/changes.