Finished basic js image cycle