broke out the js to its own file. added loop for adding attr\s
added file