Added some Javascript's hooks capabilities