Added untested javascript, will test tonight when I get home