adding sprite obj js