Cleanup of some code style, and fix security group permission editor by not including the JS initialization code twice.