javascript is pretty much finished, gonna run some tests