Added javascript file for common objects

Added obligation class, and the schedule now stores a list of the
obligations.