rewrite onclick function with better code
wrap onclick events in an anonymous function
remove unnecessary escape
use function form for 'use strict'
bring dot operator to preceding line