remove undefined error by adding source of js library