hacked markipup to call js function