A simple javascript interface