adding standard js stuff