refactored js site side and updated commit script