With JS or PHP, learn what they're actually for, and then come up with something useful you can create with it. Doing is learning. Reading alone is useless.