Use sessionStorage for collocations, modularize javascript code