Moved js to ui