some useful javascript codes and files