Simple JavaScript animation based in images and fps. Yeah! the fps is a param