readded js files, modified AlterUserRights to prevent database filling up