added pre tags to each line
added javascript functionality for form fields