Minor js cleanup