fixed JS indent braces issues in code. Fixed issue with accepting privileges.