added license to file header
fixed bug, wrong order causing undefined

- used correct attribute
only polyfill if browser doesn't support it native

- the plugin should only take effect if the browser doesn’t support the
placeholder attribute functionality natively.
- it’ll check both <input> and <textarea> and only add support if needed