moving to min version of js
adding better error messaging