made a nicer method to load external scripts
refactor

further divided html and js then grouped them under a "module"
deleted old module definition