removed some javascript errors from full screen image plugin