a simple javascript library