Javascript fixes and thumbs