fix javascript param spec