Added an assert() function for JS, also added the test project