adding js for creating a wave effect