fixed bug preventing init() in all browsers but IE < 9