javascript stg