I know it doesn't help that my experience with javascript is nil, but this is proving to be a royal PITA.