Functional, just need to add pretties
Actually using Javascript this time