global scope pollution fixed

ucfirst written as jquery plugin to fix global scope pollution