htmljs: style tags and performance tuning