import three.js lib and refact beam effect