fix bug in source.js

fix crippling javascript error