cleaned up JS statements
close #174