Adding a course javascript code and few enhancements to edit profile