Added Javascript interactivity