developed for Nimble 2k12 X octet  event in js and PHP