some primary changes in javascript version