Fixed tests. Added .js files under bin.