Moved javascript code for short reference to a separate file.