jQuery plugin for swithing input type