play width javascript