added javascript flash handler
lock