Updated JS

Corrected trim function to check for blank entries
Updated JS

Removed unnedded notes