Fixed JavaScript