adding some basic javascript