addindex issue fixed #14

changed the scripts to js for addindex issue resolved #14