Removed an unused variable and fixed a bug.

Removed an unused variable in javascript and fixed a bug with the placeholder coloring.

/cc @bummytime