removed redundant code, fixed reference issue with Chrome browser