fix js errors in fieldbook
move fieldbook js to new namespace