Added javascript to try and fix the facebook problem