Minor syntax changes

Removed a redundant echo statement.
Shortened a javascript statement from 2 to 1 lines.