personal use of javascript coding