hang in the Plugin

using hasOwnProperty instead of $.inArray

Signed-off-by: Marcello Angileri <marcelloangileri@gmail.com>