wrap js in IFFE