Updated the way id and type post variables are sent

* removed esc_js()
* send variables for id and type as regular POST vars
* increased legth of input