Cleaned up javascript global variables.
Fixed submit entry notes capturing by resolving javascript voting template variable reference.