Fixed spec argument and added browser argument
Updated lib/core