big commit: javascript working beautifully