basic javascript functionality added