removed unused js requirement and added comments