Testing Js logic

Most likely not going to work but lets see what does work.