doing some fun stuffs with javascript