added 'id' to frame and added JS for the first time
corrected error in placement of 'self'