added preloadjs support