design and index finialized
threw javascript functions into own file