added checkbox
place the javascript below the codes