added basic javascript