Added untested javascript, will test it tonight when I get home