added jquery to the mix. Decided to use jquery due to inconsistencies with broswer specific getelementbyid methods