js and java versions added