Fix bugs caused by splitting review js into separate files