Refactored out javascript code embedded into profile.blade.php file, to their own respective files under the public js folder.
Text and stylistic changes