updated for compatibility with scroungejs