slowly massaging to javascript I can modifiy