fixes full.js sample code