Trying to implement three js