Yep, that was an earthquake. If you like on the westside in LA, and you're burning the midnight oil, that jolt at 2:17AM was a 3.6 magnitude quake with an epicenter in the Santa Monica Bay. Check out the earthquakes.usgs.gov site  for more info