Added flash property support
Added javascript code