Added local jQuery
Added a test for reflection calculation
Fixed a bug in reflection calculation