Improve javascript display