javascript version of the project