rev #4, poplogin, add jquery-ui, change js using jquery widget