As I fumble through this javascript confusion.