Finished basic layout as well as js code