fixed javaScript on Frames page

buttons now add new frames to the beginning and end of the div