removes unneccesary script tags
cleans up indentation
refactors to erase need of global variable
clears search markers from map on close of search window