Documentation of code and adding .js to input support