just a snippet about create a JS slide