fixing javascript error
Merge pull request #34 from fabiosantoscode/modalMarkupModeBug

fixing javascript error