sanity check for particle filter
throw error if all particles are invalid
efficiency for marginalERPs
whitespace
minor code cleanup in header.js
 no functional changes
Updated compiled version