A simple javascript library