added highlighting & fixed some inconsistencies

Added javascript code highlighting & fixed some inconsistencies.