Cleaned up javascript from statespace js
Made javascript prettier for predicate.js