Cleanup of JS

Fix semicolon

Check for notaries being a list

Good catch on the indentation