Cleaned up JavaScript as per JSLint
Cleaned up Python as per PEP8
Removed profile_edit template to allow profile_form default template name to take precedence