added some basic javascript structure... needs to be further developed