type.js: type are lower case now + increase performance (around 3 times faster)