ASDI - 2nd Commit

Got most functions working with javascript