added memDB and correct jquery dependency for amd