WIP-Built js functionality

WIP:needs major refactor