changed to not check for whitespace after function
JSlinted and JSBeautified