Fixing formatting of js code
images added