added support for more input types and validated on js hint
added support for more input types and validated on js hint