Unfortunately, yellow leaves are a generic symptom with a number of possible causes, including under or overwatering and improper light.
Make sure it is not off to the side of the window but close to a wall that would block most of the light it needs. Move it more in front of the window or out more from the wall, if necessary.
Allow the top half-inch of soil to dry before watering it carefully all around until some water trickles through.
Remove the yellow leaves so you can monitor its progress.