diff --git a/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp b/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp
index cdbea4fd2f..2b2f87c8cd 100644
--- a/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp
+++ b/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp
@@ -2868,7 +2868,7 @@ bool js_BezierActions_initWithDuration(JSContext *cx, uint32_t argc, jsval *vp)
if (argc == 2) {
double arg0;
cocos2d::_ccBezierConfig arg1;
- ok &= JS::ToNumber( cx, JS::RootedValue(cx, args.get(0)), &arg0);
+ ok &= JS::ToNumber( cx, args.get(0), &arg0);
int num;
cocos2d::Vec2 *arr;
diff --git a/templates/js-template-default/index.html b/templates/js-template-default/index.html
index be7564a361..8d87f199ee 100644
--- a/templates/js-template-default/index.html
+++ b/templates/js-template-default/index.html
@@ -4,7 +4,7 @@
Cocos2d-html5 Hello World test
-
+
@@ -23,6 +23,23 @@
+
diff --git a/templates/js-template-runtime/index.html b/templates/js-template-runtime/index.html
index be7564a361..8d87f199ee 100644
--- a/templates/js-template-runtime/index.html
+++ b/templates/js-template-runtime/index.html
@@ -4,7 +4,7 @@
Cocos2d-html5 Hello World test
-
+
@@ -23,6 +23,23 @@
+
diff --git a/tests/js-tests/main.js b/tests/js-tests/main.js
index 0a1e22bb9c..6f55df4164 100644
--- a/tests/js-tests/main.js
+++ b/tests/js-tests/main.js
@@ -122,6 +122,8 @@ cc.game.onStart = function(){
}
else
{
+ cc.view.setDesignResolutionSize(800, 450, cc.ResolutionPolicy.SHOW_ALL);
+ cc.view.resizeWithBrowserSize(true);
// js-test use cpptest resource in debug mode , and in the release mode, console will copy the resource into the res dir
// so the respath will modify to res,
if (cc.game.config[cc.game.CONFIG_KEY.engineDir] !== "frameworks/cocos2d-html5") {
diff --git a/tests/js-tests/mobilePage.html b/tests/js-tests/mobilePage.html
index da50765119..785b38179b 100644
--- a/tests/js-tests/mobilePage.html
+++ b/tests/js-tests/mobilePage.html
@@ -6,7 +6,6 @@
-
-
-
+
+
+