Capitalize JavaScript properly